public class List {
    public int indexOf(int toFind){
        for (int i = 0; i < usedsize; i++) {
            if(toFind==a[i]){
                return i;
            }
        }
    return -1;
    }


}
